<div class="form-compile">
	<form class="layui-form" lay-filter="add-form">
		<div class="layui-form-item">
			<label class="layui-form-label required">父级菜单</label>
			<div class="layui-input-inline">
				<ul id="menuTree" class="dtree" data-id="-1" name="parentId"></ul>
				<input id="parentId" name="parentId" type="hidden">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label required">菜单名称</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="menuName"
					lay-verify="required" placeholder="请输入菜单名称">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label required">菜单类型</label>
			<div class="layui-input-inline">
				<select id="menuAddType" name="menuType"></select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label required">菜单url</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="url"
					lay-verify="required" placeholder="请输入菜单url">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label required">权限编码</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="perms"
					lay-verify="required" placeholder="请输入权限编码">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单图标</label>
			<div class="layui-input-inline">
				<input class="layui-input" id="iconMenu" type="text" name="icon"
					placeholder="请输入菜单图标">
			</div>
				<button type="button" class="layui-btn" id="choseIcon">选择图标</button>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="sort"
					placeholder="请输入排序号">
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" class="layui-textarea" name="remark"></textarea>
			</div>
		</div>
		<div class="layui-form-item form-finally">
			<button type="button" class="layui-btn" lay-submit=""
				lay-filter="menu-add" id="menuAddSave">保存</button>
			<button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
		</div>
	</form>
</div>
[@common.jsRef url="/sys/menu/addView.js"/]
